//
//  GMHSellCell.m
//  
//
//  Created by 郭明皓 on 15/10/27.
//
//

#import "GMHSellCell.h"
#import "DKNightVersion.h"
@implementation GMHSellCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)dealloc
{
    [_sellCount release];
    [_evalua release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if ( self) {
        [self createData];
    }
    return  self;
}
- (void)createData
{
    [DKNightVersionManager addClassToSet:self.class];
    self.nightBackgroundColor = UIColorFromRGB(0x343434);
    
    self.sellCount = [[UILabel alloc]init];
    [self.contentView addSubview: self.sellCount];
    [_sellCount release];
    
    self.evalua = [[UILabel alloc]init];
    [self.contentView addSubview: self.evalua];
    [_evalua release];
    self.evalua.textAlignment = NSTextAlignmentRight;
    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.sellCount.frame = CGRectMake(5, 0, 150, self.contentView.frame.size.height);
    self.evalua.frame = CGRectMake(155, 0, self.contentView.frame.size.width - 155, self.contentView.frame.size.height);
    
}

@end
